var MainPanel = cc.Class({
	name: 'MainPanel',
	
	ctor: function () {
        this.viewName = "";
        this.panel = null;
	},
    
    awake: function(){
        console.log("MainPanel");
        this.doudzBtn = this.panel.getChildByName("scrollview").getChildByName("view").getChildByName("content").getChildByName("doudzBtn").getComponent(cc.Button);
        this.doudzBtn.node.on(cc.Node.EventType.TOUCH_END,this.doudzHandler,this);
    },

    doudzHandler: function(){
        ViewMgr.showView(VIEW.LANDLORD)
    }

});

